-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add IS_BROWSER
constant to GenericNode
#274
Conversation
151da76
to
59501ab
Compare
@lukechu10 Since you mentioned wanting to support other platforms in the future, wouldn't it be wiser to change the IS_BROWSER constant to something like PLATFORM_NAME or PLATFORM with an enum which can include a variant for custom for user provided renderers? This does solve the ugly hack, but doesn't help when targeting other runtimes, such as NativeScript, React Native, etc. |
Only web apps need to be isomorphic, meaning that they should render with both |
Codecov Report
@@ Coverage Diff @@
## master #274 +/- ##
=======================================
Coverage 74.93% 74.93%
=======================================
Files 33 33
Lines 4800 4800
=======================================
Hits 3597 3597
Misses 1203 1203
Continue to review full report at Codecov.
|
This fixes the ugly hack of using
and replaces it with